package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.PinkoTransactionMapper;
import com.ruoyi.system.domain.PinkoTransaction;
import com.ruoyi.system.service.IPinkoTransactionService;

/**
 * Pinko交易Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-07
 */
@Service
public class PinkoTransactionServiceImpl implements IPinkoTransactionService 
{
    @Autowired
    private PinkoTransactionMapper pinkoTransactionMapper;

    /**
     * 查询Pinko交易
     * 
     * @param id Pinko交易主键
     * @return Pinko交易
     */
    @Override
    public PinkoTransaction selectPinkoTransactionById(Long id)
    {
        return pinkoTransactionMapper.selectPinkoTransactionById(id);
    }

    /**
     * 查询Pinko交易列表
     * 
     * @param pinkoTransaction Pinko交易
     * @return Pinko交易
     */
    @Override
    public List<PinkoTransaction> selectPinkoTransactionList(PinkoTransaction pinkoTransaction)
    {

        return pinkoTransactionMapper.selectPinkoTransactionList(pinkoTransaction);
    }

    /**
     * 新增Pinko交易
     * 
     * @param pinkoTransaction Pinko交易
     * @return 结果
     */
    @Override
    public int insertPinkoTransaction(PinkoTransaction pinkoTransaction)
    {
        return pinkoTransactionMapper.insertPinkoTransaction(pinkoTransaction);
    }

    /**
     * 修改Pinko交易
     * 
     * @param pinkoTransaction Pinko交易
     * @return 结果
     */
    @Override
    public int updatePinkoTransaction(PinkoTransaction pinkoTransaction)
    {
        return pinkoTransactionMapper.updatePinkoTransaction(pinkoTransaction);
    }

    /**
     * 批量删除Pinko交易
     * 
     * @param ids 需要删除的Pinko交易主键
     * @return 结果
     */
    @Override
    public int deletePinkoTransactionByIds(Long[] ids)
    {
        return pinkoTransactionMapper.deletePinkoTransactionByIds(ids);
    }

    /**
     * 删除Pinko交易信息
     * 
     * @param id Pinko交易主键
     * @return 结果
     */
    @Override
    public int deletePinkoTransactionById(Long id)
    {
        return pinkoTransactionMapper.deletePinkoTransactionById(id);
    }
}
